import axios from 'axios'
axios.defaults.baseURL = 'http://geek.itheima.net'
axios.defaults.timeout = 8000
export default ({ url, method, params, data, headers }) =>
  axios({
    url,
    data,
    params,
    method,
    headers
  })
